/*
描述：应用入口文件，初始化Vue应用并配置全局插件
完成人：何艺珲
完成时间: 2025/04/24
*/


import { createApp } from 'vue'
import {createPinia} from 'pinia'

import App from './App.vue'
import router from '@/router'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const pinia = createPinia()
const app = createApp(App)

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

app.use(ElementPlus)
app.use(router)
app.use(pinia)
app.mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
